//
//  SingleCard.h
//  UISegmentControl_test
//
//  Created by Mac on 2020/11/30.
//  Copyright © 2020年 Lorisyy. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface SingleCard : NSObject{
    NSString *name, *time, *content;
    NSString *tags;
    NSMutableArray *photos;
    int imgNum; // Number of images on the post
    int likesNum;// Number of likes
    int commentsNum;// Number of comments
};

- (id)init;

- (NSString *)getTime;
- (NSString *)getName;
- (NSString *)getContent;
- (NSString *)getTags;

- (int)getImgNum;
- (int)getLikesNum;
- (int)getCommentsNum;

- (UIImage *)getImgByIndex:(int)i;

- (void)setTime:(NSString *)t;
- (void)setName:(NSString *)n;
- (void)setContent:(NSString *)c;
- (void)setTags:(NSString *)ts;
- (void)setImgNum:(int)n;
- (void)setLikesNum:(int)n;
- (void)setCommentsNum:(int)n;

- (void)setPhotos:(NSMutableArray *)photos;

@end

NS_ASSUME_NONNULL_END
